package Shale;

import java.util.Comparator;

/**
 * 基于shale dj/Sj的优先级对排期进行排序
 * @author leiwenkang
 * Created on 2022-01-26
 */
public class ShaleComparator implements Comparator<Demand>  {

    @Override
    public int compare(Demand demand1, Demand demand2) {
        //按theta从大到小排序
        return Double.compare(demand2.getTheta(), demand1.getTheta());
    }
}
